<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>N3RD CH4T: /Users/plamontagna/Documents/spa-cs340project/im_client_v2/chatwindow.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">N3RD CH4T
   &#160;<span id="projectnumber">Final Version</span>
   </div>
   <div id="projectbrief">CS340 Project</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">/Users/plamontagna/Documents/spa-cs340project/im_client_v2/chatwindow.h</div>  </div>
</div>
<div class="contents">
<a href="chatwindow_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// ----------------------------------------------------------------------------</span>
<a name="l00018"></a>00018 <span class="comment"></span><span class="comment">// ----------------------------------------------------------------------------</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef CHATWINDOW_H</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define CHATWINDOW_H</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;QDialog&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;<a class="code" href="client_8h.html" title="Header file for client.cpp.">client.h</a>&quot;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;QDesktopServices&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;QDir&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;QKeyEvent&quot;</span>
<a name="l00028"></a>00028 <span class="keyword">namespace </span>Ui {
<a name="l00029"></a>00029     <span class="keyword">class </span><a class="code" href="classchat_window.html" title="The chatWindow helper methods.">chatWindow</a>;
<a name="l00030"></a>00030 }
<a name="l00031"></a>00031 
<a name="l00039"></a><a class="code" href="classchat_window.html">00039</a> <span class="keyword">class </span><a class="code" href="classchat_window.html" title="The chatWindow helper methods.">chatWindow</a> : <span class="keyword">public</span> QDialog
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041     Q_OBJECT
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="keyword">public</span>:
<a name="l00044"></a>00044 
<a name="l00046"></a>00046     <span class="keyword">explicit</span> <a class="code" href="classchat_window.html#a103ce347a4bb6fab382f1cca06c39f1d" title="Constructor method for chatWindow.">chatWindow</a>(QWidget *parent = 0);
<a name="l00047"></a>00047 
<a name="l00049"></a>00049     <a class="code" href="classchat_window.html#a75e3fbcc81b226118c125c999f04e644" title="Deconstructor for chatWindow.">~chatWindow</a>();
<a name="l00050"></a>00050 
<a name="l00057"></a>00057     <span class="keywordtype">void</span> <a class="code" href="classchat_window.html#a52a956b9b93fcd65d7addd2c66345983" title="Method that sets the from user attribute.">setfromUser</a>(QString);
<a name="l00058"></a>00058 
<a name="l00065"></a>00065     <span class="keywordtype">void</span> <a class="code" href="classchat_window.html#a982f117c47864e0fe3cc3bd61032fe4b" title="Method that sets the to user attribute.">setToUser</a>(QString);
<a name="l00066"></a>00066 
<a name="l00073"></a>00073     QString <a class="code" href="classchat_window.html#a0cc2ee4af6d8408d3e1d2382bc8ee0de" title="Method that gets the to user information.">getToUser</a>();
<a name="l00074"></a>00074 
<a name="l00080"></a>00080     QString <a class="code" href="classchat_window.html#a05f81085133d6bcf825ee466512e25a7" title="Method that gets the from user information.">getFromUser</a>();
<a name="l00081"></a>00081 
<a name="l00087"></a>00087     QString <a class="code" href="classchat_window.html#abc9d08c2a56665988fa5003d91ebad16" title="Method that gets the operating system information from the user.">getOsType</a>();
<a name="l00088"></a>00088 
<a name="l00096"></a>00096     <span class="keywordtype">void</span> <a class="code" href="classchat_window.html#a782ec79ac1f496c74958d7cab7d3aa1b" title="Method that receives the message.">receiveMessage</a>(QString,QString,QString);
<a name="l00097"></a>00097 
<a name="l00098"></a>00098 <span class="keyword">private</span> slots:
<a name="l00099"></a>00099 
<a name="l00103"></a>00103     <span class="keywordtype">void</span> <a class="code" href="classchat_window.html#ad2ff9f9d1648cf0a724caa09c4750bae" title="Slot that determines if the user has clicked the send button.">on_sendButton_clicked</a>();
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="keyword">private</span>:
<a name="l00106"></a>00106     Ui::chatWindow *ui;
<a name="l00107"></a>00107 
<a name="l00109"></a><a class="code" href="classchat_window.html#abec29f9b70797c7f2d548e0507b4379c">00109</a>     QString <a class="code" href="classchat_window.html#abec29f9b70797c7f2d548e0507b4379c" title="toUser variable">toUser</a>;
<a name="l00110"></a>00110 
<a name="l00112"></a><a class="code" href="classchat_window.html#a8241d50ed9469212e8952044fce389d4">00112</a>     QString <a class="code" href="classchat_window.html#a8241d50ed9469212e8952044fce389d4" title="fromUser variable">fromUser</a>;
<a name="l00113"></a>00113 
<a name="l00121"></a>00121     <span class="keywordtype">void</span> <a class="code" href="classchat_window.html#a3c83a26de5daf6899a91769b13d945a6" title="Method that saves chat conversations to a text file.">OutPutChat</a>(QString,QString);
<a name="l00122"></a>00122 
<a name="l00123"></a>00123     <span class="keywordtype">bool</span> eventFilter(QObject *ob, QEvent *e);
<a name="l00124"></a>00124 
<a name="l00125"></a>00125 signals:
<a name="l00126"></a>00126 
<a name="l00136"></a>00136     <span class="keywordtype">void</span> <a class="code" href="classchat_window.html#a1ed506729bd803adf6771814dd2cca64" title="Signal that sends the message.">messageSent</a>(QString,QString,QString,QString);
<a name="l00137"></a>00137 
<a name="l00138"></a>00138 };
<a name="l00139"></a>00139 
<a name="l00140"></a>00140 <span class="preprocessor">#endif // CHATWINDOW_H</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 29 2011 23:53:09 for N3RD CH4T by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
